package com.phone.store.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/30 4:01 下午
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
public class PhoneSpecs {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer specsId;

    private Integer phoneId;

    private String specsName;

    private Integer specsStock;

    private BigDecimal specsPrice;

    private String specsIcon;

    private String specsPreview;

    private Date updateTime;

    private Date createTime;
}
